﻿using System.Drawing;
namespace Weapp.ControlLibrary.CustomBasicControlers
{
    partial class HorizontalLine
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Name = "LineX";
            this.Resize += new System.EventHandler (this.HorizontalLine_Resize);
            this.Paint += new System.Windows.Forms.PaintEventHandler (this.HorizontalLine_Paint);
        }

        private void HorizontalLine_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            Pen myPen = new Pen(this.LineColor);
            myPen.Width = this.lineWidth * 2;
            this.Height = this.LineWidth;
            g.DrawLine(myPen, 0, 0, e.ClipRectangle.Right, 0);
        }

        private void HorizontalLine_Resize(object sender, System.EventArgs e)
        {
            this.Height = this.lineWidth;
        }
        #endregion
    }
}
